package com.cma.model.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 数据库表【sys_department】对应的entity对象
 *
 * @author  hbb
 * @date 2017-01-17 11:25:44
*/
@Entity
@Table(name = "sys_department")
public class SysDepartment extends BaseDbEntity implements Serializable {


// 部门名称
@Column(name = "dept_name", nullable = false)
private java.lang.String deptName;


// 部门编号
@Column(name = "dept_code", nullable = false)
private java.lang.String deptCode;


// 部门排序
@Column(name = "sort_order", nullable = false)
private java.lang.Integer sortOrder;


// 父部门
@Column(name = "dept_parent_id", nullable = false)
private java.lang.String deptParentId;


// 创建人
@Column(name = "creater", nullable = false)
private java.lang.String creater;


// 修改人
@Column(name = "updater", nullable = false)
private java.lang.String updater;


// 部门组织类型
@Column(name = "tissue_types", nullable = false)
private java.lang.String tissueTypes;






    // ================================================================================================



    /**
     * 获取对象的属性【部门名称】
     *
     * @return java.lang.String
     */
public java.lang.String getDeptName() {
        return deptName;
        }

/**
 * 设置对象的属性【部门名称】
 * @param deptName
 */
public void setDeptName(java.lang.String deptName) {
        this.deptName = deptName;
        }

    /**
     * 获取对象的属性【部门编号】
     *
     * @return java.lang.String
     */
public java.lang.String getDeptCode() {
        return deptCode;
        }

/**
 * 设置对象的属性【部门编号】
 * @param deptCode
 */
public void setDeptCode(java.lang.String deptCode) {
        this.deptCode = deptCode;
        }

    /**
     * 获取对象的属性【部门排序】
     *
     * @return java.lang.Integer
     */
public java.lang.Integer getSortOrder() {
        return sortOrder;
        }

/**
 * 设置对象的属性【部门排序】
 * @param sortOrder
 */
public void setSortOrder(java.lang.Integer sortOrder) {
        this.sortOrder = sortOrder;
        }

    /**
     * 获取对象的属性【父部门】
     *
     * @return java.lang.String
     */
public java.lang.String getDeptParentId() {
        return deptParentId;
        }

/**
 * 设置对象的属性【父部门】
 * @param deptParentId
 */
public void setDeptParentId(java.lang.String deptParentId) {
        this.deptParentId = deptParentId;
        }

    /**
     * 获取对象的属性【创建人】
     *
     * @return java.lang.String
     */
public java.lang.String getCreater() {
        return creater;
        }

/**
 * 设置对象的属性【创建人】
 * @param creater
 */
public void setCreater(java.lang.String creater) {
        this.creater = creater;
        }

    /**
     * 获取对象的属性【修改人】
     *
     * @return java.lang.String
     */
public java.lang.String getUpdater() {
        return updater;
        }

/**
 * 设置对象的属性【修改人】
 * @param updater
 */
public void setUpdater(java.lang.String updater) {
        this.updater = updater;
        }

    /**
     * 获取对象的属性【部门组织类型】
     *
     * @return java.lang.String
     */
public java.lang.String getTissueTypes() {
        return tissueTypes;
        }

/**
 * 设置对象的属性【部门组织类型】
 * @param tissueTypes
 */
public void setTissueTypes(java.lang.String tissueTypes) {
        this.tissueTypes = tissueTypes;
        }

        // ================================================================================================

        public String toString(){
            StringBuffer sb = new StringBuffer();
            sb.append("SysDepartment=====>");
            sb.append("{");
                                sb.append("id=>"+this.id).append(", ");
                                sb.append("deptName=>"+this.deptName).append(", ");
                                sb.append("deptCode=>"+this.deptCode).append(", ");
                                sb.append("sortOrder=>"+this.sortOrder).append(", ");
                                sb.append("deptParentId=>"+this.deptParentId).append(", ");
                                sb.append("createTime=>"+this.createTime).append(", ");
                                sb.append("creater=>"+this.creater).append(", ");
                                sb.append("updateTime=>"+this.updateTime).append(", ");
                                sb.append("updater=>"+this.updater).append(", ");
                                sb.append("tissueTypes=>"+this.tissueTypes).append(", ");
                        sb.append("}");
            return sb.toString();
        }

}